#pragma once
#ifndef x3DEnv_h__
#define x3DEnv_h__

#include "xRes.h"

namespace Sky
{
	class xDxApp;
	class xD3DEnv : public xAppRes<LPDIRECT3D9>
	{
	public:
		xD3DEnv();
		~xD3DEnv();
	public://xAppRes
		virtual TResult onCreate(xDxApp* app);
		virtual TResult onDelete(xDxApp* app);
	public:
		LPDIRECT3D9 getDirect3D9(){return getCreatedRes();}
	private:
		TVoid	Initialise();
		TVoid	Finalise();
	private:
		LPDIRECT3D9 mD3d;
	};
}

#endif // x3DEnv_h__